<div class="row"><h3 class="page-header">用户组管理</h3></div>
<div class="row">
    <div class="panel panel-default">
        <div class="panel-body">
        	<label><a class="btn btn-primary" href="{:U('Group/add')}">添加用户组</a></label>
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th width="60">序号</th>
                            <th>用户组名称</th>
                            <th>备注</th>
                            <th width="180">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                     <empty name="list">
                            <tr><td colspan="4" align="center">暂无信息</td></tr>
                        </empty>
                        <volist name="list" id="list">
                            <tr>
                                <td>{$i}</td>
                                <td>{$list.name}</td>
                                <td>{$list.remark|default='无'}</td>
                                <if condition="$Think.session.adminInfo.gid eq 2 ">
                                <if condition="$list.name eq '超级管理员'">
                                <td></td>
                                <else /> 
                                     <td>
                                        <a class="btn-sm btn btn-default" href='{:U("Group/edit?id=".$list["id"])}'>修改</a>
                                        <gt name="list.id" value="1">
                                            <button data-url='{:U("Group/del?id=".$list["id"])}' class="btn-sm btn btn-default delBtn" type="button">删除</button>
                                        </gt>
                                     </td>
                                </if>
                                    
                                    <else /> 
                                      <td>
                                        <a class="btn-sm btn btn-default" href='{:U("Group/edit?id=".$list["id"])}'>修改</a>
                                        <gt name="list.id" value="1">
                                            <button data-url='{:U("Group/del?id=".$list["id"])}' class="btn-sm btn btn-default delBtn" type="button">删除</button>
                                        </gt>
                                     </td>
                                </if>
                            </tr>
                        </volist>
                    </tbody>
                </table>
            </div>
            {$page}
        </div>
    </div>
</div>